home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
01
/
3
/
DISK0130.ZIP
/
CHANGE.MAN
< prev
next >
Wrap
Text File
|
1983-09-07
|
756b
|
32 lines
.im man.im
.NM change change patterns in text
.SY change pattern [newstuff]
.FU
.ital change
copies its input to its output except that
each non-overlapping string that matches
.ital pattern
is replaced by the string
.ital newstuff.
A non-existent
.ital newstuff
implies deletion of the matched string.
The patterns accepted by
.ital change
are the same as those used by
.ital findp.
The replacement string
.ital newstuff
consists of zero or more of the following elements:
.Q1
c literal character
& ditto, i.e., whatever was matched
\@c escaped character c (e.g., \@&)
.Q2
.EG
To parenthesize all sums and differences of identifiers:
.Q1
change "[a-zA-Z][a-zA-Z0-9]*[ ]*[+-][ ]*[a-zA-Z][a-zA-Z0-9]*" (&)
.Q2